<?php

/***  DOCUMENTATION LAYER

Last Update: Mar 2007
	
DESCRIPTION
	brief description of script here
	
NOTES
	
***/

// Timer
$_tx0 = microtime();

// HEADER
echo "<h1 style='margin:8px 0 0;'>PHP Sandbox</h1>";
echo "<h4 style='margin:0 0 16px;'>Simple Test</h4>";	// put script name here

// *** PROCEDURAL
if ( 0 ) 
{
	echo "<h4 style='margin:0; color:blue;'>Testing in Progess</h4>";
}



// *** FUNCTION
/*____________________________________________________________________________*/
function name() 
{
// *** DATA

	// Return


// *** MANIPULATE

// *** RETURN

} 
/*____________________________________________________________________________*/


// Test Function
if ( 0 )
{
	$run = 10;
	echo "<h2 style='margin:0; color:green;'>Function Test</h2>";	
	while ( $run )
	{
		// $result = function();
		echo "<h6 style='margin:0; color:#ccc;'>test #{$run} complete</h6>";
		$run--;
	}
}

// Footer
$_txn = microtime();
$stx = number_format(((substr($_txn,0,9)) + (substr($_txn,-10)) - (substr($_tx0,0,9)) - (substr($_tx0,-10))),4); 
$footer = <<<HTML
<h4 style="margin:0; position:absolute; top:6px; right:6px; font-family:monospace; color:#36f; padding:4px; border:1px solid #36f; font-weight:normal; background:#f3f6ff;">
script completed in $stx s
</h4>
HTML;
echo $footer;

?>
